home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Installer SDK 1.2.3 / Upgrader 1.2.3 & Engines / Upgrader 1.2.3 / Plug-in Examples / Preflight Function Example / InstallationPluginExt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-09  |  2.1 KB  |  68 lines  |  [TEXT/MPS ]

  1.  
  2. #ifndef __InstallationPluginExt__
  3. #define __InstallationPluginExt__
  4.  
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. #if PRAGMA_ALIGN_SUPPORTED
  11. #pragma options align=mac68k
  12. #endif
  13.  
  14. #if PRAGMA_IMPORT_SUPPORTED
  15. #pragma import on
  16. #endif
  17.  
  18. /********************************************************************************************************/
  19. /*                                                                                                        */
  20. /*                                Software Installer Preflight Routine                                    */
  21. /*                                                                                                        */
  22. /*                                                                                                        */
  23. /*    Prototype:                                                                                            */
  24. /* SoftwareInstallerPreflightResult SoftwareInstallerPreflightRoutine(SoftwareInstallerPreflightPBPtr);    */
  25. /*                                                                                                        */
  26. /********************************************************************************************************/
  27.  
  28. // Result definition
  29. enum {
  30.     kNoError                    = 0,
  31.     kInternalError                = -1
  32. };
  33.  
  34. typedef SInt32 SoftwareInstallerPreflightResult;
  35.  
  36.  
  37. // Parameter block definition
  38. struct SoftwareInstallerPreflightPBRec {
  39.     
  40.     // Fields set on entry    
  41.     SInt16                            fDestinationVRefNum;                // Volume RefNum of selected destination disk.
  42.     SInt32                            fRefCon;                            // 32-bit value passed to code resource from client data file.
  43.     Boolean                            fDoingCleanInstall;                    // Flag set if user has specified a clean install.  Ignore fDestinationVRefNum field if true.
  44.     
  45.     // Fields set by you on exit    
  46.     Boolean                            fSkipOnEasy;                        // Flag to force software installer to be skipped when running in Easy HI mode
  47.     Boolean                            fSkipOnCustom;                        // Flag to force software installer to be skipped when running in Custom HI mode
  48.     Boolean                            fOverrideDefaultSelection;            // Flag to force initial selection state of software installer checkbox to that specified in the fSelectIfOverridden field.
  49.     Boolean                            fSelectIfOverridden;                // Selection state of software installer checkbox if fOverrideDefaultSelection field is true.
  50.     
  51. };
  52. typedef struct SoftwareInstallerPreflightPBRec SoftwareInstallerPreflightPBRec, *SoftwareInstallerPreflightPBPtr;
  53.  
  54.  
  55. #if PRAGMA_IMPORT_SUPPORTED
  56. #pragma import off
  57. #endif
  58.  
  59. #if PRAGMA_ALIGN_SUPPORTED
  60. #pragma options align=reset
  61. #endif
  62.  
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66.  
  67. #endif /* __InstallationPluginExt__ */
  68.